﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Atomic.User.Entities;
using FluentNHibernate.Mapping;

namespace Atomic.User.Mappings
{
    public class UserExtendFieldMap : ClassMap<UserExtendFieldEntity>
    {
        public UserExtendFieldMap()
        {
            Table("UserExtendField");
            Id(m => m.ID).GeneratedBy.Native();
            Map(m => m.UserTypeID).Not.Update();    //禁止更新
            Map(m => m.Name).Length(30).Not.Nullable().Not.Update();   //禁止更新操作
            Map(m => m.DisplayName).Length(20).Not.Nullable();
            Map(m => m.Comment).Length(255);
        }
    }
}
